<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <script src="https://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js" charset="utf-8"></script>
    <title>js-json</title>
  </head>
  <body>
    <script type="text/javascript">
      function showData(data) {
        for (var i = 0; i < data.length; i++) {
          document.wtite(data[i].name+" "+data[i].age);
        }
      }
      $.getJSON("js-json-data.json",function(data) {
        showData(data);
      });
    </script>
  </body>
</html>
